void Dispatch()
{
	int i;
	
	while(1)
	{
		Prompt();
		gets(InputBuf);

		Dispart(); /* Dispart command and its argument from InputBuf. */
	
		for(i=CmdCount-1; i > 0; i--)
			if(strcmp(command, CmdMap[i].command) == 0)
		 	{
				CmdMap[i].process();
				break;
			}

		if(i == 0)
		{
			strcpy(ErrorMessage, "Cannot recgonize this command.\a\n");
			CmdMap[0].process();
		}
	}
}

